//
//  GCViews.swift
//  GoCash
//
//  Created by jie on 2024/4/30.
//

import SwiftUI

struct GCNavigationView: View {
    var body: some View {
        HStack(alignment: .firstTextBaseline, content: {
            Text("").frame(width: 16)
            Button{
                
            }label: {
                Image(systemName: "square.and.arrow.up")
                .frame(width: 36, height: 36)
                .foregroundColor(.white)
                .background(Color.blue)
                .cornerRadius(10)
            }
            Image(systemName: "calendar").frame(width: 44, height: 44)
            Text("title")
            Spacer()
         })
        .background(.white)
        .frame(height: 44)
    }
}


struct GCTestView: View {
    var body: some View {
        VStack{
            GCNavigationView()
            
            Text("fdafdafdaf")
            Text("fdafdafdaf")
            Text("fdafdafdaf")
            Text("fdafdafdaf")
            Text("fdafdafdaf")
            Text("fdafdafdaf")
            Text("fdafdafdaf")
            Spacer()
        }
        .background(Color.white)
        .padding(.zero)
        
    }
}

#Preview {
    GCTestView()
}
